<?php

class playersComponents extends sfComponents {

    function executeAllPlayers(sfWebRequest $request) {
        $c = new Criteria();
        $c->addDescendingOrderByColumn(PlayerPeer::CREATED_AT);
        $this->pager = new PropelPager($c, 'playerPeer', 'doSelect', $this->Page, 12);
    }

}
